package aop.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import aop.core.MemberService;

public class TestAOP {

	public static void main(String[] args) {
		// Application context
		ApplicationContext ctx = new ClassPathXmlApplicationContext("aop/config/aop-spring.xml");
		MemberService service = (MemberService)ctx.getBean("memberService");
		service.getMemberById("id-9");
		service.joinMember("id-9", "김영수", 20);
	}

}
